Optimal. Leaf size=72 \[ \frac {(A b-2 a B) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{2 a^{3/2}}-\frac {A \sqrt {a+b x+c x^2}}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {806, 724, 206} \[ \frac {(A b-2 a B) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{2 a^{3/2}}-\frac {A \sqrt {a+b x+c x^2}}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 724
Rule 806
Rubi steps
\begin {align*} \int \frac {A+B x}{x^2 \sqrt {a+b x+c x^2}} \, dx &=-\frac {A \sqrt {a+b x+c x^2}}{a x}-\frac {(A b-2 a B) \int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx}{2 a}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{a x}+\frac {(A b-2 a B) \operatorname {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b x}{\sqrt {a+b x+c x^2}}\right )}{a}\\ &=-\frac {A \sqrt {a+b x+c x^2}}{a x}+\frac {(A b-2 a B) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{2 a^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 70, normalized size = 0.97 \[ \frac {(A b-2 a B) \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+x (b+c x)}}\right )}{2 a^{3/2}}-\frac {A \sqrt {a+x (b+c x)}}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.36, size = 177, normalized size = 2.46 \[ \left [-\frac {{\left (2 \, B a - A b\right )} \sqrt {a} x \log \left (-\frac {8 \, a b x + {\left (b^{2} + 4 \, a c\right )} x^{2} + 4 \, \sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {a} + 8 \, a^{2}}{x^{2}}\right ) + 4 \, \sqrt {c x^{2} + b x + a} A a}{4 \, a^{2} x}, \frac {{\left (2 \, B a - A b\right )} \sqrt {-a} x \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{2} + a b x + a^{2}\right )}}\right ) - 2 \, \sqrt {c x^{2} + b x + a} A a}{2 \, a^{2} x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 110, normalized size = 1.53 \[ \frac {{\left (2 \, B a - A b\right )} \arctan \left (-\frac {\sqrt {c} x - \sqrt {c x^{2} + b x + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a} + \frac {{\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} A b + 2 \, A a \sqrt {c}}{{\left ({\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )}^{2} - a\right )} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 94, normalized size = 1.31 \[ \frac {A b \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{2 a^{\frac {3}{2}}}-\frac {B \ln \left (\frac {b x +2 a +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {a}}{x}\right )}{\sqrt {a}}-\frac {\sqrt {c \,x^{2}+b x +a}\, A}{a x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.46, size = 87, normalized size = 1.21 \[ \frac {A\,b\,\mathrm {atanh}\left (\frac {a+\frac {b\,x}{2}}{\sqrt {a}\,\sqrt {c\,x^2+b\,x+a}}\right )}{2\,a^{3/2}}-\frac {A\,\sqrt {c\,x^2+b\,x+a}}{a\,x}-\frac {B\,\ln \left (\frac {b}{2}+\frac {a}{x}+\frac {\sqrt {a}\,\sqrt {c\,x^2+b\,x+a}}{x}\right )}{\sqrt {a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + B x}{x^{2} \sqrt {a + b x + c x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________